﻿using System.Collections.Generic;

namespace IOA.MES.DataAccess.VModel
{
    /// <summary>
    /// 分档规则
    /// </summary>
    public class VBinningSchema : BaseVModel
    {
        private string _schemaName = string.Empty;
        private string _workshopCode;
        private string _workshopName;

        #region Public Property

        ///<Summary>
        /// 车间代码
        ///</Summary>
        public string WorkshopCode
        {
            get { return string.IsNullOrWhiteSpace(_workshopCode) ? string.Empty : _workshopCode; }
            set { _workshopCode = value; }
        }

        ///<Summary>
        /// 车间名称
        ///</Summary>
        public string WorkshopName
        {
            get { return string.IsNullOrWhiteSpace(_workshopName) ? string.Empty : _workshopName; }
            set { _workshopName = value; }
        }

        ///<Summary>
        /// 规则名称
        ///</Summary>
        public string SchemaName
        {
            get { return string.IsNullOrWhiteSpace(_schemaName) ? string.Empty : _schemaName; }
            set { _schemaName = value; }
        }

        ///<Summary>
        /// 状态
        ///</Summary>
        public Enum.CommonStatus Status { get; set; }

        /// <summary>
        /// 功率档
        /// </summary>
        public List<VBinningPower> BinningPowers { get; set; } = new List<VBinningPower>();
        #endregion
    }
}
